<?php
namespace app\index\validate;
use think\Validate;
class Icon extends Validate
{
    // 验证规则
    protected $rule = [
        'icon' =>['require'],
    ];

    // 提示信息
    protected $message = [
        'icon.require' => '图片不能为空',
    ];

}